home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
print
/
cprncs.arj
/
CPRINT.TXT
< prev
next >
Wrap
Text File
|
1993-02-17
|
7KB
|
166 lines
CPRINT 2.17 ■ LaserJet Code Printer with Comment Hi-Lighting ║
Copyright (c) 1991-93 Cactus Software. All rights reserved. Cactus ║ ║ ║
Software ╚═╣ ║
CPRINT is a refinement of the common utility to print (c) 1993 ╠═╝
"two up" on LaserJet compatible printers. I wrote CPRINT
after spending half an hour trying to understand a section of someone else's
program, before realizing that that section was commented out. CPRINT
hi-lights remarks in program code by printing them in bold text.
The default print orientation will print two page side by side with each
page containing 66 lines of 80 characters. The portrait orientation (/P1)
prints a single page with 93 lines of 120 characters. (Great for reading
long lines of Pascal or C code!) Lines longer than the maximum are indicated
with a "»" character in the right margin and will be wrapped to the next line
(or truncated if the /W0 option is set).
If you use the standard filename extensions for your source files (e.g. .PAS
for Pascal), CPRINT will be able to identify the remarks in your file. For
non-standard names, specify the remark style using the Language [/Ln] parm.
Revision History:
2.17 Added logic to print light background stripes on page.
Ignore unknown program switches.
Fixed bug with specifying partial pathnames.
2.16 Fixed network printing problem.
Fixed printer status check.
2.15 First public release.
Usage: CPRINT input [dest] [options]
input - File(s) to be printed (e.g. c:\source\*.c*)
dest - Output (defaults to PRN) (e.g. LPT2: or SOURCE.PRN)
Options: (defaults are indicated by '*')
Box Style [/Bn]
/B0 No boxes are printed
*/B1 Each column is boxed
/B2 Line is printed on the top, bottom and between columns
/B3 Line is printed on the top and between columns
Header Placement [/Hn]
/H0 No file or page information is printed
/H1 File and page information across the top of the page
*/H2 File and page information across the bottom of the page
Language [/Ln]
*/L0 AutoDetect - determined by extension of filename as shown below
/L1 Assembler (.ASM)
/L2 BASIC (.BAS)
/L3 C (.C, .H, .CPP, .HPP)
/L4 COBOL (.COB, .CBL)
/L5 Pascal (.PAS, .INC)
Portrait [/Pn] - Single column mode
*/P0 Landscape Mode
/P1 Portrait Mode
Remarks [/Rn]
/R0 Don't hilight remarks
*/R1 Hilight remarks
Stripes [/Sn]
*/S0 Don't print stripes
/S1 Print stripes on page
Tab Width [/Tn] - Valid range is 1 to 16
/Tn Use /T1 for no tab expansion. /T8 is the default
Wrap Lines [/Wn]
/W0 Don't wrap lines (lines will be truncated)
*/W1 Wrap lines after 80/120 characters reached (depends on orientation)
Notes:
- the BASIC REM statement is not recognized. Use the Quote(') for remarks
- the COBOL REMARKS section is not recognized. Use (*) in column 7.
Custom Graphics:
For an additional fee, I will customize your copy of CPRINT so that it
prints a copy of your company logo or other graphics on each page of the
output instead of the Cactus Software logo.
You can have up to 3 different graphics in a single copy of CPRINT, selected
with a /Gn option. The maximum size of an individual graphic is 128 x 64.
For a single order of 10 or more licences, you are allowed one free custom
graphic.
Ordering Graphics:
If you are ordering a customized version of CPRINT, I will require your
logo in Windows BMP format. The image can be up to 128 x 64 and must be
monochrome. Alternatively, you can send your logo in the following format:
0000000000000111100000000000000000000000000000000000000000000000011100000000
0000000000001000010000000000000000010000000000000000000000000000011100000000
0000000000010000000000000000000000010000000000000000000000000000011100000000
0000000000010000000001111000111100111100010001000111000000111000011100001110
0000000000010000000010001001000000010000010001001000000000111000011100001110
0000000000010000000010001001000000010000010001000111000000111000011100001110
0000000000001000010010001001000000010010010001000000100000111000011100001110
0000000000000111100001111000111100001100001111000111000000111000011100001110
0000000000000000000000000000000000000000000000000000000000111000011100001110
0000000000000000000000000000000000000000000000000000000000111000011100001110
0111100000000000011000000000000000000000000000000000000000111111111100001110
1000010000000000100000100000000000000000000000000000000000111111111100001110
0100000000000000100000100000000000000000000000000000000000011111111111111110
0011000001110001111001111000100010001111001011000111000000000000011111111110
0000100010001000100000100000100010010001001100001000100000000000011111111100
0000010010001000100000100000101010010001001000001111000000000000011100000000
1000010010001000100000100100101010010001001000001000000000000000011100000000
0111100001110000100000011000010100001111001000000111100000000000011100000000
Please keep in mind that images that are mostly black (1's in the graphic)
do not work well on the LaserJet. If you do not send a graphic image defined
as above, but send a business card or letterhead, I will attempt to generate
the image for you. However, I cannot guarantee that your image will be to
your satisfaction.
There should be several print files (.PRN) with your copy of CPRINT. These
files are sample printouts with different logos to show the detailed graphics
that are possible. To print them, issue the command: COPY *.PRN PRN /B
You are permitted to evaluate this software for a two week period. If you
continue to use it beyond the evaluation period, you must register by sending
CAN$25 / US$20 to the address below.
Order Form: Date:________________________________
Name:_____________________________ Company:________________________________
Address:___________________________________________________________________
City:_____________________________ Prov/State:_________ Zip/Postal: _______
Country:_______________________ Daytime Ph:______________ FAX:_____________
Where did you get CPRINT? ________________________Compuserve ID:___________
What version of CPRINT do you have?________________________________________
Individual License: .................................... $25.00
Multi-User License: 2-10 ................. ____ x $22 = _________
11-25 ................. ____ x $20 = _________
26-50 ................. ____ x $18 = _________
Over 50 ................. Please Call
Custom Graphics: 1 ........................ $25 _________
(please include a disk 2 ........................ $40 _________
with your logo in 3 ........................ $50 _________
BMP format.)
Ontario Residents add 8% P.S.T. _________
Total _________
Please make cheques payable to Tony Yeung.
« Tony Yeung - Cactus Software »
« 147 The Country Way, Kitchener, Ont N2E 2L1 Canada (519) 570-0864 »